﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SPetTotemInfo extends IMessageBase
    {
        public var totemId:int;
        public var level:int;
        public var isEquips:Array;
        public const _type:int = 15097;
        public static var _regist:SPetTotemInfo = new SPetTotemInfo(true);

        public function SPetTotemInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPetTotemInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.totemId);
            param1.writeInt(this.level);
            SeqIntHelper.write(param1, this.isEquips);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.totemId = param1.readInt();
            this.level = param1.readInt();
            this.isEquips = SeqIntHelper.read(param1);
            return;
        }// end function

    }
}
